package com.ruoyi.mentor.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 学科，记录学科信息对象 ad_subject
 *
 * @author LH
 * @date 2021-05-21
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ad_subject")
public class Subject implements Serializable {

private static final long serialVersionUID=1L;


    /**  */
    @TableId(value = "id")
    private Long id;

    /** 专业名 */
    private String majorName;

    /** 学科点名称 */
    private String subName;



    public String getMapKeyName() {
        return majorName+":"+subName;
    }
}
